<?php
namespace app\common\validate\Order;

use think\Validate;

// 商品订单的验证器
class Comment extends Validate
{
    protected $rule =   [ 
        'busid'   => 'require',
        'orderid'   => 'require',
        'proid' => 'require',
        'content'   => 'require',
        'rate' => ['number','require'],
        
    ];

    protected $message  =   [
        'busid.require'     => '用户必须填写',
        'orderid.require'     => '订单必须填写',
        'proid.require'     => '商品必须填写',
        'content.require'     => '评论必须填写',
        'rate.require'     => '评分必须填写',
        'rate.number'      => '评分必须是数字类型',
    ];

}

?>